<script setup>
const dateDisabled = (date) => {
  return date > new Date();
};

const now = useDateFormat(useNow(), "YYYY-MM-DD HH:mm:ss");
</script>

<template>
  <n-date-picker clearable :is-date-disabled="dateDisabled"></n-date-picker>
  <n-button ref="btn" type="primary" class="mt-2 text-white">
    {{ now }}
  </n-button>
</template>

<style scoped>
.aaaaa {
  line-height: 1.5;
  text-align: center;
}
</style>
